package com.example.swagger.controller;

import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/hello")
public class HelloController {
    @PutMapping
    public String updateHello(String str){
        return  str;
    }
    //restful 风格url
    @DeleteMapping
    public String deleteHello(Integer id,Long idL,HttpServletRequest request){
        return "Hello";
    }
}
